package practica3;

public class MainBroadcast {

	/**
	 * Creem BoaqdcastBuffer, creem consumidors, els registrem i creem
	 * productor. Arranquem productor i consumidor.
	 */
	public static void main(String[] args) {
		BroadcastBuffer b = new BroadcastBuffer(5);


		for(int i=0;i<10;i++){
			Consumidor t = new Consumidor(b,((char)('B'+i))+"",10,true);
			b.registerConsumidor(t);
			t.start();
		}
		new Productor(b,"A",10,true).start();

	}

}
